package cn.hallele.ms.portalcenter.application.action.datadict.type.list.flow;

import cn.hallele.infrastructure.metadata.io.Page;
import cn.hallele.ms.portalcenter.application.bo.DataDictTypeBO;
import cn.hallele.ms.portalcenter.application.bo.DataDictTypeQueryBO;
import cn.hallele.ms.portalcenter.application.das.DataDictTypeBDDas;
import cn.hallele.ms.starter.web.framework.node.ServiceFlow;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * hallele_ms_configcenter
 *
 * @author anle5
 * @since 2025/3/9 16:47
 */

@Slf4j
@LiteflowComponent
public class QueryDataDictTypeListFlow extends ServiceFlow {
    @Autowired
    private DataDictTypeBDDas dataDictTypeBDDas;

    @Override
    public void process() throws Exception {
        DataDictTypeQueryBO condition = this.getRequestData();
        Page<DataDictTypeBO> result = dataDictTypeBDDas.getDataDictTypes(condition);
        this.setResult(result);
    }
}
